from selenium.webdriver.common.by import By

from utils.page_base import PageBase #导入页面基类


class PageUI3(PageBase):
    url="/ucenter/index"
    loc_nicen=By.CSS_SELECTOR,"div.user_info > h2"

    def __init__(self, driver, base_url):
        PageBase.__init__(self, driver, base_url)


    #获取昵称：获取h2标签的文本内容
    def getNicen(self):
        return self.getText(PageUI3.loc_nicen)
